package org.sang.controller;/*
 * @author  gaokecheng
 * @date 2019/9/9 18:12
 *
 *
 * */

import org.sang.bean.Editor;
import org.sang.service.OnlineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/online/current")
public class OnlineController {
    @Autowired
    private OnlineService onlineService;
    @RequestMapping("/getCurrentOnline")
    public Map<String,Object> getCurrentOnline(){
        return onlineService.getCurrentOnline();

    }

}
